package cc.dullsky.lucene.model;

import java.util.HashSet;

public class IndexConfig {
	private static HashSet<ConfigBean> configBeans;

	private static class DefaultIndexConfig {
		private static final HashSet<ConfigBean> defaultConfigBeans = new HashSet<ConfigBean>();
		static {
			ConfigBean bean = new ConfigBean();
			defaultConfigBeans.add(bean);
		}
	}

	public static HashSet<ConfigBean> getConfig() {
		if (configBeans == null) {
			return DefaultIndexConfig.defaultConfigBeans;
		}
		return configBeans;
	}

	public static void setConfig(HashSet<ConfigBean> configBeans) {
		IndexConfig.configBeans = configBeans;
	}
}
